body {
    background: #f2f2f2;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -200px;
    width: 400px;
    height: 400px;
    border-radius: 3px;
    box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
    background: #42a7a1;
    font-family: 'Open Sans', Helvetica, sans-serif;
    color: #fff;
}

.card {
    width: 280px;
    height: 220px;
    background: #fff;
    border-radius: 3px;
    margin: 90px auto;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    width: 100%;
    height: 60px;
    background: #f1ba64;
    position: relative;

    .big {
        position: absolute;
        font-size: 14px;
        font-weight: 600;
    }

    .small {
        position: absolute;
        font-size: 11px;
        font-weight: 400;
    }

    .title {
        top: 12px;
        left: 15px;
    }

    .date {
        top: 30px;
        left: 15px;
    }

    .type {
        top: 14px;
        right: 15px;
    }

    .value {
        top: 28px;
        right: 15px;
    }
}

.parameter {
    text-align: right;
    padding: 10px 0 14px;

    span {
        color: #555;
        font-size: 9px;
        line-height: 13px;
        position: relative;
        padding: 0 10px 0 25px;
    }

    span:before {
        content: '';
        display: block;
        width: 11px;
        height: 3px;
        background: #000;
        position: absolute;
        left: 6px;
        top: 3px;
    }

    .red:before {
        background: #fa7373;
    }

    .blue:before {
        background: #7ba2ff;
    }
}

.statistic {
    width: 260px;
    height: 81px;
    margin: 0 auto;
    position: relative;

    .line {
        width: 100%;
        height: 1px;
        background: #eee;
        position: absolute;
    }

    .l2 {
        top: 50%;
    }

    .l3 {
        bottom: 0;
    }
}

.data {
    svg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    polyline {
        fill: none;
        stroke: #000;
        stroke-width: 2;
        stroke-linecap: round;
    }

    &.red polyline {
        stroke: #fa7373;
    }

    &.blue polyline {
        stroke: #7ba2ff;
    }

    .points {
        position: relative;
    }

    .point {
        width: 6px;
        height: 6px;
        border-radius: 3px;
        cursor: pointer;
        position: absolute;
        z-index: 10;
        background: #000;
        transform: translate(-3px, -3px);

        &:hover .tooltip {
            visibility: visible;
            opacity: 1;
            transform: translate3d(-50%, 0, 0);
        }
    }

    &.red {
        .point {
            background: #fa7373;
        }

        .p1 {
            left: 7px;
            top: 43px;
        }

        .p2 {
            left: 47px;
            top: 10px;
        }

        .p3 {
            left: 87px;
            top: 20px;
        }

        .p4 {
            left: 127px;
            top: 9px;
        }

        .p5 {
            left: 167px;
            top: 35px;
        }

        .p6 {
            left: 207px;
            top: 45px;
        }

        .p7 {
            left: 247px;
            top: 16px;
        }
    }

    &.blue {
        .point {
            background: #7ba2ff;
        }

        .p1 {
            left: 7px;
            top: 33px;
        }

        .p2 {
            left: 47px;
            top: 20px;
        }

        .p3 {
            left: 87px;
            top: 13px;
        }

        .p4 {
            left: 127px;
            top: 69px;
        }

        .p5 {
            left: 167px;
            top: 15px;
        }

        .p6 {
            left: 207px;
            top: 5px;
        }

        .p7 {
            left: 247px;
            top: 56px;
        }
    }

    .tooltip {
        position: absolute;
        bottom: 13px;
        left: 50%;
        transform: translate3d(-50%, 10%, 0);
        background: #000;
        padding: 8px 6px;
        border-radius: 3px;
        font-size: 10px;
        line-height: 10px;
        visibility: hidden;
        opacity: 0;
        transition: transform 0.4s ease-in-out 0s, opacity 0.4s ease-in-out 0s;

        &::after {
            content: '';
            display: block;
            width: 6px;
            height: 6px;
            background: #000;
            position: absolute;
            left: 50%;
            margin-left: -3px;
            bottom: -3px;
            transform: rotate(45deg);
        }
    }

    &.red {
        .tooltip {
            background: #fa7373;

            &::after {
                background: #fa7373;
            }
        }
    }

    &.blue {
        .tooltip {
            background: #7ba2ff;

            &::after {
                background: #7ba2ff;
            }
        }
    }
}

.days {
    width: 280px;
    margin: 0 auto;

    .day {
        float: left;
        width: 40px;
        color: #999;
        font-size: 10px;
        line-height: 30px;
        text-align: center;
    }
}